#ifndef Attribute_H
#define Attribute_H

#include "AssetData.h"
#include "IAttribute.h"

namespace XpsAssets
{

	class Attribute  : public AssetData, public IAttribute
	{
		QString	_name;
		QString	_desc;
		int	_weight;

	public:
		Attribute() : AssetData(ATTRIBUTE)
		{
			_name = "";
			_desc = "";
			_weight = 10;
		};
		void setName(QString name) { _name = name; };
		QString	name() { return _name; };
		void setDesc(QString desc) { _desc = desc; };
		QString	desc() { return _desc; };
		void setWeight(int weight) { _weight = weight; };
		int	weight() { return _weight; };
		QString toString() { return QString("%1").arg(name()); };
	};

}

#endif